import Layout from '@/layout/Layout'

const goodsRouter = {
  path: '/goods',
  component: Layout,
  redirect: 'noredirect',
  name: '产品管理',
  meta: {
    title: '产品管理',
    icon: 'fa-shopping-bag'
  },
  children: [
    {
      path: 'attrManagement',
      component: () => import('@/views/goods/AttrManagement'),
      name: 'AttrManagement',
      meta: { title: '属性库' , cache: true}
    },
    {
      path: 'commonImageManagement',
      component: () => import('@/views/goods/CommonImageManagement'),
      name: 'CommonImageManagement',
      meta: { title: '公共图库',cache: true}
    },
    {
      path: 'specManagement',
      component: () => import('@/views/goods/SpecManagement'),
      name: 'SpecManagement',
      meta: { title: '规格管理' , cache: true}
    },
    {
      path: 'commonServerManagement',
      component: () => import('@/views/goods/CommonServerManagement'),
      name: 'CommonServerManagement',
      meta: { title: '公共货品库',cache: true}
    },
    {
      path: 'businessServerManagement',
      component: () => import('@/views/goods/BusinessServerManagement'),
      name: 'BusinessServerManagement',
      meta: { title: '货品库',cache: true}
    },
    {
      path: 'combineManagement',
      component: () => import('@/views/goods/CombineManagement'),
      name: 'CombineManagement',
      meta: { title: '产品组合' , cache: true}
    },
    {
      path: 'goodsManagement',
      component: () => import('@/views/goods/GoodsManagement'),
      name: 'GoodsManagement',
      meta: { title: '经营产品' , cache: true}
    },
    {
      path: 'timeTemplateManagement',
      component: () => import('@/views/goods/TimeTemplateManagement'),
      name: 'TimeTemplateManagement',
      meta: { title: '可售时间模板' , cache: true}
    },

  ]
}

export default goodsRouter
